package com.quanshu.exchange.support.db;

import java.util.List;

/**
 * Created by jye on 2017/11/28.
 */

public interface IDao<T> {

    void save(T t);

    void save(List<T> list);

    void delete(T t);

    void delete(String primaryKey);

    void update(T t);

    T query(String primaryKey);

    List<T> queryForAll();

}
